define("accordion/1.0.0/index",["jquery"],function(e,t,l){var s=e("jquery"),i=function(e,t){var l={expandClass:"expanded",onlyExpandOne:!1,expandSelector:"dd.sub",clickItemSelector:"dl dt i",itemBlockSelector:"dl"},i=s.extend({},l,t);this.$selector=s(e),this.$itemBlocks=this.$selector.find(i.itemBlockSelector),this.$lastClickItem=null,this.$lastExpanedItem=null;var n=function(e,t){t.is(":visible")?(e.removeClass(i.expandClass),t.slideUp("fast")):(e.addClass(i.expandClass),t.slideDown("fast"),this.$lastClickItem=e,this.$lastExpanedItem=t)};this.init=function(){var e=this;this.$selector.on("click",i.clickItemSelector,function(){var t=s(this);i.onlyExpandOne&&(e.$lastExpanedItem&&e.$lastExpanedItem.slideUp("fast"),e.$lastClickItem&&e.$lastClickItem.removeClass(i.expandClass)),n.call(e,t,t.closest(i.itemBlockSelector).find(i.expandSelector))})}};i.prototype.run=function(){this.init()},l.exports={accordion:function(e,t){new i(e,t).run()}}});